<#assign tit><#if _oper='add'>新增<#else>修改</#if>支付方式</#assign>
<@page.html title=tit>
<div style="width:450px;">

  <form id="fm_input" method="post" action="<#if _oper='add'>_add<#else>_edit</#if>" onsubmit="return post(this);">
    <div class="kbox">
      <table class="input">
        <tr>
          <th width="25%">编号</th>
          <td width="75%"><#if _oper='add'><input type="text" name="code" value="${payType.code!}" req="编号" size="16" maxlength="20"><span class="require">*</span><#else><input type="hidden" name="code" value="${payType.code!}">${payType.code!}</#if></td>
        </tr>
        <tr>
          <th>名称</th>
          <td><input type="text" name="chName" value="${payType.chName!}" req="名称" size="26" maxlength="50"><span class="require">*</span></td>
        </tr>
        <tr>
          <th>填写备注</th>
          <td><input type="radio" name="requireNote" id="require_1" value="1"<#if payType.requireNote=1> checked</#if>><label for="require_1">是</label>
            <input type="radio" name="requireNote" id="require_0" value="0"<#if payType.requireNote!=1> checked</#if>><label for="require_0">否</label></td>
        </tr>
        <tr>
          <th>财务分类</th>
          <td><select name="traCode" style="width:250px;"><option value=""></option><#if tranCode??><#list tranCode as t><option value="${t.tranCode}"<#if payType.traCode?? && payType.traCode=t.tranCode> selected</#if>>${t.tranCode} - ${t.codeName}</option></#list></#if></select></td>
        </tr>
        <tr>
          <th>备注</th>
          <td><textarea name="note" cols="30" rows="3">${payType.note!}</textarea></td>
        </tr>
        <tr>
          <th>状态</th>
          <td><input type="radio" name="status" id="enable_1" value="1"<#if payType.status=1> checked</#if>><label for="enable_1">有效</label>
            <input type="radio" name="status" id="enable_2" value="2"<#if payType.status!=1> checked</#if>><label for="enable_2">失效</label></td>
        </tr>
        <tr>
          <th>显示顺序</th>
          <td><input type="text" name="sort" value="${payType.sort!}" req="显示顺序" size="5" maxlength="4"></td>
        </tr>
      </table>
    </div>
    <div class="button"><input type="submit" value="提 交"></div>
  </form>
</div>
</@page.html>